package com.pucong.gitee.database.backup.common.entity.database;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("AUTO_SEARCH_SQL_INFO")
@ApiModel("sql 收藏信息表")
public class BackupSearchSqlInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "UUID",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @ApiModelProperty("数据源id")
    @TableField("DATABASE_ID")
    private String databaseId;

    @ApiModelProperty("数据库名称")
    @TableField("DATABASE_NAME")
    private String databaseName;

    @ApiModelProperty("数据库模式名称")
    @TableField("SCHEMA_NAME")
    private String schemaName;

    @ApiModelProperty("执行sql")
    @TableField("EXE_SQL")
    private String exeSql;

    @ApiModelProperty("收藏名称")
    @TableField("EXE_NAME")
    private String exeName;

    @ApiModelProperty("创建时间")
    @TableField("CREATE_TIME")
    private Date exeTime;

    @ApiModelProperty("创建人")
    @TableField("CREATE_BY")
    private String createBy;
}
